`extends main("Добавить рецепт", "Добавить рецепт", null)

<ul class="breadcrumb">
    <li>
		<a href="@{Application.index()}">Главная</a> <span class="divider">/</span>
    </li>
    <li class="active">Предложить рецепт</li>
</ul>
<form action="@{Application.addRecipe()}" method="post" accept-charset="utf-8" enctype="application/x-www-form-urlencoded" class="form-horizontal">
	${authenticityToken()}
	<fieldset>
		<legend>Предложить свой рецепт</legend>
		<div class="clearfix">
			<label for="name">Название рецепта:</label>
			<div class="input">
				<input type="text" name="name" value="${flash("name")}"/>
				<span class="help-inline"></span>
				`if(hasError("name")){`<span class="alert-message error">${error("name")}</span>`}`
				<span class="help-block">Обязательное</span>
			</div>
		</div>
		<div class="clearfix">
			<label for="description">Описание рецепта:</label>
			<div class="input">
				<textarea rows="10" cols="20" name="description">${flash("description")}</textarea>
				<span class="help-inline"></span>
				`if (hasError("description")){`<span class="alert-message error">${error("description")}</span>`}`
				<span class="help-block">Обязательное</span>
			</div>
		</div>
		<div class="clearfix">
			<label for="name">Ваше имя:</label>
			<div class="input">
				<input type="text" name="author" value="${flash("author")}"/>
				<span class="help-inline"></span>
				`if (hasError("author")){`<span class="alert-message error">${error("author")}</span>`}`
				<span class="help-block">Обязательное</span>
			</div>
		</div>
	</fieldset>
	<div class="actions">
		<input type="submit" class="btn primary" value="Добавить рецепт"/>
	</div>
</form>